Inheritance diagram for TMCCountedObject:

Public Member Functions | |
| void * | operator new (MCSIZE_T byteCount) |
| void | operator delete (void *block) |
| void * | operator new[] (MCSIZE_T byteCount) |
| void | operator delete[] (void *block) |
| virtual MCErr MCCOMAPI | QueryInterface (const MCIID &riid, void **ppvObj) |
| virtual uint32 MCCOMAPI | AddRef () |
| virtual uint32 MCCOMAPI | Release () |
Static Public Member Functions | |
| static void | Create (TMCCountedObject **outObject) |
Protected Member Functions | |
| TMCCountedObject (void) | |
| virtual | ~TMCCountedObject () |
Protected Attributes | |
| uint32 | fRefCount |
Take a look at TMCCountedCreateHelper to see how to create and return a counted object
|
|
|
|
|
|
|
|
Increments the reference count of the object Implements IMCUnknown. Reimplemented in TBasicMenuCallBack, and TBasicThread. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Check if the object supports a given interface and returns a pointer to that interface if it does. Note that QueryInterface will increment the reference count of the object by one if the interface is found.
Implements IMCUnknown. Reimplemented in TBasicMenuCallBack, and TBasicThread. |
|
|
Decrements the reference count of the object. If the reference count reaches zero, the object is destroyed. Implements IMCUnknown. Reimplemented in TBasicMenuCallBack, and TBasicThread. |
|
|
|
1.4.5